package 功能实现.管理员角色权限三级.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class PermissionUpdateParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "权限名称不能为空")
    @ApiModelProperty(value = "权限名称", required = true, example = "权限A")
    private String name;

    @NotNull(message = "权限路径不能为空")
    @ApiModelProperty(value = "权限路径", required = true, example = "权限A路径")
    private String value;

    @ApiModelProperty(value = "权限简介", required = true, example = "权限A简介")
    private String description;

    @NotNull(message = "必须提交排序序号")
    @Range(max = 99, message = "排序序号值必须0~99之间")
    @ApiModelProperty(value = "权限排序,必须是0~255之间的数字", required = true, example = "97")
    private Integer sort;

}
